<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<!--#    Copyright 2011 Tri-County Electric Cooperative, St. Matthews, South Carolina
#    This file is part of COOPIP.
#    COOPIP is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#    COOPIP is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#    You should have received a copy of the GNU General Public License
#    along with COOPIP.  If not, see <http://www.gnu.org/licenses/>.-->

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>intranetmessage.html</title>
  <link rel="stylesheet" type="text/css" href="/style.css" />
</head>

<body>

<div id="logo">
    <img src="/media/TCECLogo.png" name="graphics1" align="left" border="0" height="84" width="198">
</div>

<div id="login">
    {% if not Permission %}
    <form method="post" action="">
    Login:  {{form.Username}} Password:  {{form.Password}} <input value="Login" type="submit">
    {% else %}  <!---# else...  display the rest of the page -->
    {{LoginStatus}} &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a href="/coopip/logout/">Logout</a> 
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a href="/">Main Menu</a>
</div>



<h1>TCEC Intranet Edit Message</h1>

<div id="intranetmessageformoptions">
    <form method="post" action="" enctype="multipart/form-data">
    &nbspSelect Message: {{form.SelectMessage}}<br>
    
    <table>
    <tr><td>Department</td><td>{{form.Department}}</td></tr>
    <tr><td>Message ID:</td><td>{{form.Messageid}}</td></tr>
   
    </table>
</div>


<div id="intranetmessageformleftcolumn">
    <table>
    <tr><td>Title</td><td>{{form.Title}}</td></tr>
    <tr><td>Text</td><td>{{form.MessageText}}</td></tr>
    <tr><td>Front Page</td><td>{{form.FrontPageIndicator}}</td></tr>
    <tr><td>Department Page</td><td>{{form.DepartmentPageIndicator}}</td></tr>
    <tr><td>Priority</td><td>{{form.Priority}}</td></tr>
    <tr><td>Create Username</td><td>{{form.CreateUsername}}</td></tr>
    <tr><td>Create DateTime</td><td>{{form.CreateDateTime}}</td></tr>
    <tr><td>LastEdit Username</td><td>{{form.LastEditUsername}}</td></tr>
    <tr><td>LastEditDateTime</td><td>{{form.LastEditDateTime}}</td></tr>
    <tr><td>Expire Date</td><td>{{form.ExpireDateTime}}</td></tr>
    <tr><td>Archive</td><td>{{form.ArchiveIndicator}}</td></tr>
    </table>

    <h2>Set Background Image</h2>
    <table>
        <tr><td>Background Image Department</td><td>{{form.DepartmentForBackgroundImage}}</td></tr>
        <tr><td>Background Image (jpg, bmp, png only)</td><td>{{form.DepartmentBackgroundImage}}</td></tr>
    </table>

    <h2>Create/Edit Event</h2>
    <table>
        <tr><td>New Event {{form.EventNewIndicator}}</td><td>Update Event {{form.EventUpdateIndicator}}</td></tr>
        <tr><td>Select Event</td><td>{{form.SelectEvent}}</td></tr>  
        <tr><td>Event Department</td><td>{{form.EventDepartment}}</td></tr>
        <tr><td>Name</td><td>{{form.EventName}}</td></tr>
        {% if StaffIndicator %}<tr><td>Staff</td><td>{{form.EventStaffOnlyIndicator}}</td></tr>{% endif %}
        <tr><td>Note</td><td>{{form.EventResource}}</td></tr>
        <tr><td>Do Not Display Before Date</t d><td>{{form.EventDoNotShowBeforeDateTime}}</td></tr>
        <tr><td>Event Start Date</td><td>{{form.EventStartDateTime}}</td></tr>
        <tr><td>Event End Date</td><td>{{form.EventEndDateTime}}</td></tr>
        <tr><td>Display Event on Front Page</td><td>{{form.EventFrontPageIndicator}}</td></tr>
        <tr><td>Event Archive Override Date</td><td>{{form.EventArchiveOverrideDateTime}}</td></tr>
        <tr><td>Event Archive</td><td>{{form.EventArchiveIndicator}}</td></tr>
    </table>
</div>

<div id="intranetmessageformrightcolumn">
    <table>
    <tr><td>Upload File</td><td>{{form.UploadFile}}</td></tr> 
    <tr><td>Delete File {{form.DeleteFileIndicator}}</td><td>{{form.DeleteFile}}</td>
    <tr><td>Existing Files:</td></tr>
    {% for id, filename in FileList %}
        <tr><td>&nbsp</td><td><a href="/coopip/intranet/department/message/file/{{ id }}/">{{ filename }}</a></td></tr>
    {% endfor %}
    </table>
</div>


<div id="intranetmessageformsubmit">
    New: {{form.NewIndicator}} Update: {{form.UpdateIndicator}} <input value="Submit" type="submit">
</div>




</form>

{% endif %}


</body></html>
